﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wedo.Recognition.Domain.Mapping;
using Wedo.Recognition.Domain.Models;
using System.Data.Entity.ModelConfiguration;

namespace Wedo.Recognition.Domain.Mapping
{
    public class IPBankData_Mapping : EntityTypeConfiguration<IPBankData>
    {
        public IPBankData_Mapping()
        {
            ToTable("IPBankData");

            HasKey(s => s.Id).Property(s => s.Id);
            Property(s => s.Currency).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.ReceiveDate).HasColumnType("datetime2");
            Property(s => s.BankCode).HasMaxLength(255).HasColumnType("nvarchar"); 
            Property(s => s.ReceiveType);

            Property(s => s.LCNumber).HasMaxLength(500).HasColumnType("nvarchar");
            Property(s => s.TradeAddionalComment).HasMaxLength(500).HasColumnType("nvarchar");
            Property(s => s.BankRemarkNum).HasColumnType("varchar"); 
            Property(s => s.Payer).HasMaxLength(100).HasColumnType("nvarchar");

            Property(s => s.BatchID).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.RecieTypeStr).HasMaxLength(50).HasColumnType("nvarchar");
        }
    }

}
